package com.aaa.three.controller;

import com.aaa.three.entity.Doctor;
import com.aaa.three.result.AjaxResult;
import com.aaa.three.service.CharService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @PACKAGE_NAME: com.aaa.three.controller
 * @NAME: CharController
 * @USER: Tprairie
 * @DATE: 2022/2/28
 * @PROJECT_NAME: three
 */
@RestController
@RequestMapping("/char")
public class CharController {
    @Autowired
    private CharService charServiceImpl;
    @RequestMapping("/listHis")
    public AjaxResult listHistogram(Doctor doctor){
        return charServiceImpl.listHistogram(doctor);
    }
    @RequestMapping("/listLine")
    public AjaxResult listLineChart(Doctor doctor){
        return charServiceImpl.listLineChart(doctor);
    }
}
